import { saveAs } from "file-saver";

export const downloadImage = (canvas, filename = "meme.png") => {
  canvas.toBlob((blob) => {
    saveAs(blob, filename);
  });
};
